package com.itheima.a07threadmethod4;

import com.itheima.a01threadcase1.MyThread;

public class ThreadDemo {
    public static void main(String[] args) {
        //礼让线程：让出线程对cpu的占用
        MyThread m1=new MyThread();
        MyThread m2=new MyThread();

        m1.setName("飞机");
        m2.setName("坦克");

        m1.start();
        m2.start();
    }
}
